package main

import (
	"time"
	"fmt"
)

func main() {
	ticker:=time.NewTicker(time.Millisecond*500)

	go func() {
		for t:=range ticker.C{
			fmt.Println(t)
		}
	}()

	time.Sleep(time.Millisecond*1600)
	ticker.Stop()
	fmt.Println("stop")
}
